package com.hns.can.upgrade.entity;


import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 
* @ClassName: UpgPhoneVrsn 
* @Description: 手机升级版本
* @author zhangl
* @email victor_007@126.com
* @date 2016年11月15日 上午11:14:24
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "T_UPG_PHONE_VRSN")
public class UpgPhoneVrsn implements java.io.Serializable {

	// Fields

	private String id;
	private String paramId;
	private String vrsnName;
	private String vrsnType;
	private String packageName;
	private String remark;
	private String upgFile;
	private Date crtTime;
	private BigDecimal vrsnCode;

	// Constructors

	/** default constructor */
	public UpgPhoneVrsn() {
	}


	// Property accessors
	@Id
	@Column(name = "ID", nullable = false, length = 32)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	@Column(name = "PARAM_ID", length = 32)
	public String getParamId() {
        return paramId;
    }

    public void setParamId(String paramId) {
        this.paramId = paramId;
    }

    @Column(name = "VRSN_NAME", nullable = false, length = 100)
	public String getVrsnName() {
		return this.vrsnName;
	}

	public void setVrsnName(String vrsnName) {
		this.vrsnName = vrsnName;
	}

	@Column(name = "VRSN_TYPE",  length = 20)
	public String getVrsnType() {
		return this.vrsnType;
	}

	public void setVrsnType(String vrsnType) {
		this.vrsnType = vrsnType;
	}

	//@Column(name = "PACKAGE_NAME", length = 20)
	@Transient
	public String getPackageName() {
		return this.packageName;
	}

	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}

	@Column(name = "REMARK", length = 500)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "UPG_FILE", length = 200)
	public String getUpgFile() {
        return upgFile;
    }

    public void setUpgFile(String upgFile) {
        this.upgFile = upgFile;
    }

	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Column(name = "CRT_TIME", nullable = false, length = 7)
	public Date getCrtTime() {
		return this.crtTime;
	}


    public void setCrtTime(Date crtTime) {
		this.crtTime = crtTime;
	}

    @Column(name = "VRSN_CODE", nullable = false, precision = 3, scale = 0)
    public BigDecimal getVrsnCode() {
        return vrsnCode;
    }

    public void setVrsnCode(BigDecimal vrsnCode) {
        this.vrsnCode = vrsnCode;
    }

	

}